Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Objects /
Chapter 3 - Style Objects / Style Objects Reference
Functions / Creating and Manipulating Style Objects


GXNewStyle

You can use the GXNewStyle function to create a new style object with default properties.

gxStyle GXNewStyle(void);
function result
A reference to a newly created copy of the default style object.
DESCRIPTION
The GXNewStyle function creates a style object with an owner count of 1. All other properties of the style are set to their default values:

All other properties are zero or nil.

SPECIAL CONSIDERATIONS
If no error occurs, the GXNewStyle function creates a style object; you are responsible for disposing of that object when you no longer need it.

ERRORS, WARNINGS, AND NOTICES
Errors 
out_of_memory 
SEE ALSO
Default style values are described in the section "The Default Style Object" on page 3-6.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996